﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace WpfGridlock
{
    /// <summary>
    /// Логика взаимодействия для LevelWindow.xaml
    /// </summary>
    public partial class LevelWindow : Window
    {
        public LevelWindow()
        {
            InitializeComponent();
        }

        private void ReturnMenuBtn_Click(object sender, RoutedEventArgs e)
        {
            MainWindow openWnew = new MainWindow();
            openWnew.Height = this.ActualHeight;
            openWnew.Width = this.ActualWidth;
            openWnew.WindowState = this.WindowState;
            openWnew.Show();
            this.Close();  // Закрываем текущую форму
        }

        private void button1_Click(object sender, RoutedEventArgs e)
        {

        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {

        }

        private void button1_Click_1(object sender, RoutedEventArgs e)
        {
            GameWindow openWnew = new GameWindow();
            openWnew.GetCountLevel(1);
            openWnew.Height = this.ActualHeight;
            openWnew.Width = this.ActualWidth;
            openWnew.WindowState = this.WindowState;
            openWnew.Show();
            this.Close();  // Закрываем текущую форму
        }

        private void button2_Click(object sender, RoutedEventArgs e)
        {
            GameWindow openWnew = new GameWindow();
            openWnew.GetCountLevel(2);
            openWnew.Height = this.ActualHeight;
            openWnew.Width = this.ActualWidth;
            openWnew.WindowState = this.WindowState;
            openWnew.Show();
            this.Close();  // Закрываем текущую форму
        }

        private void button3_Click(object sender, RoutedEventArgs e)
        {
            GameWindow openWnew = new GameWindow();
            openWnew.GetCountLevel(3);
            openWnew.Height = this.ActualHeight;
            openWnew.Width = this.ActualWidth;
            openWnew.WindowState = this.WindowState;
            openWnew.Show();
            this.Close();  // Закрываем текущую форму
        }

        private void button4_Click(object sender, RoutedEventArgs e)
        {
            GameWindow openWnew = new GameWindow();
            openWnew.GetCountLevel(4);
            openWnew.Height = this.ActualHeight;
            openWnew.Width = this.ActualWidth;
            openWnew.WindowState = this.WindowState;
            openWnew.Show();
            this.Close();  // Закрываем текущую форму
        }

        private void button5_Click(object sender, RoutedEventArgs e)
        {
            GameWindow openWnew = new GameWindow();
            openWnew.GetCountLevel(5);
            openWnew.Height = this.ActualHeight;
            openWnew.Width = this.ActualWidth;
            openWnew.WindowState = this.WindowState;
            openWnew.Show();
            this.Close();  // Закрываем текущую форму
        }

        private void button6_Click(object sender, RoutedEventArgs e)
        {
            GameWindow openWnew = new GameWindow();
            openWnew.GetCountLevel(6);
            openWnew.Height = this.ActualHeight;
            openWnew.Width = this.ActualWidth;
            openWnew.WindowState = this.WindowState;
            openWnew.Show();
            this.Close();  // Закрываем текущую форму
        }

        private void button7_Click(object sender, RoutedEventArgs e)
        {
            GameWindow openWnew = new GameWindow();
            openWnew.GetCountLevel(7);
            openWnew.Height = this.ActualHeight;
            openWnew.Width = this.ActualWidth;
            openWnew.WindowState = this.WindowState;
            openWnew.Show();
            this.Close();  // Закрываем текущую форму
        }

        private void button8_Click(object sender, RoutedEventArgs e)
        {
            GameWindow openWnew = new GameWindow();
            openWnew.GetCountLevel(8);
            openWnew.Height = this.ActualHeight;
            openWnew.Width = this.ActualWidth;
            openWnew.WindowState = this.WindowState;
            openWnew.Show();
            this.Close();  // Закрываем текущую форму
        }

        private void button9_Click(object sender, RoutedEventArgs e)
        {
            GameWindow openWnew = new GameWindow();
            openWnew.GetCountLevel(9);
            openWnew.Height = this.ActualHeight;
            openWnew.Width = this.ActualWidth;
            openWnew.WindowState = this.WindowState;
            openWnew.Show();
            this.Close();  // Закрываем текущую форму
        }

        private void button10_Click(object sender, RoutedEventArgs e)
        {
            GameWindow openWnew = new GameWindow();
            openWnew.GetCountLevel(10);
            openWnew.Height = this.ActualHeight;
            openWnew.Width = this.ActualWidth;
            openWnew.WindowState = this.WindowState;
            openWnew.Show();
            this.Close();  // Закрываем текущую форму
        }

        private void button11_Click(object sender, RoutedEventArgs e)
        {
            GameWindow openWnew = new GameWindow();
            openWnew.GetCountLevel(11);
            openWnew.Height = this.ActualHeight;
            openWnew.Width = this.ActualWidth;
            openWnew.WindowState = this.WindowState;
            openWnew.Show();
            this.Close();  // Закрываем текущую форму
        }

        private void button12_Click(object sender, RoutedEventArgs e)
        {
            GameWindow openWnew = new GameWindow();
            openWnew.GetCountLevel(12);
            openWnew.Height = this.ActualHeight;
            openWnew.Width = this.ActualWidth;
            openWnew.WindowState = this.WindowState;
            openWnew.Show();
            this.Close();  // Закрываем текущую форму
        }

        private void button13_Click(object sender, RoutedEventArgs e)
        {
            GameWindow openWnew = new GameWindow();
            openWnew.GetCountLevel(13);
            openWnew.Height = this.ActualHeight;
            openWnew.Width = this.ActualWidth;
            openWnew.WindowState = this.WindowState;
            openWnew.Show();
            this.Close();  // Закрываем текущую форму
        }

        private void button14_Click(object sender, RoutedEventArgs e)
        {
            GameWindow openWnew = new GameWindow();
            openWnew.GetCountLevel(14);
            openWnew.Height = this.ActualHeight;
            openWnew.Width = this.ActualWidth;
            openWnew.WindowState = this.WindowState;
            openWnew.Show();
            this.Close();  // Закрываем текущую форму
        }

        private void button15_Click(object sender, RoutedEventArgs e)
        {
            GameWindow openWnew = new GameWindow();
            openWnew.GetCountLevel(15);
            openWnew.Height = this.ActualHeight;
            openWnew.Width = this.ActualWidth;
            openWnew.WindowState = this.WindowState;
            openWnew.Show();
            this.Close();  // Закрываем текущую форму
        }

        private void button16_Click(object sender, RoutedEventArgs e)
        {
            GameWindow openWnew = new GameWindow();
            openWnew.GetCountLevel(16);
            openWnew.Height = this.ActualHeight;
            openWnew.Width = this.ActualWidth;
            openWnew.WindowState = this.WindowState;
            openWnew.Show();
            this.Close();  // Закрываем текущую форму
        }

        private void button17_Click(object sender, RoutedEventArgs e)
        {
            GameWindow openWnew = new GameWindow();
            openWnew.GetCountLevel(17);
            openWnew.Height = this.ActualHeight;
            openWnew.Width = this.ActualWidth;
            openWnew.WindowState = this.WindowState;
            openWnew.Show();
            this.Close();  // Закрываем текущую форму
        }

        private void button18_Click(object sender, RoutedEventArgs e)
        {
            GameWindow openWnew = new GameWindow();
            openWnew.GetCountLevel(18);
            openWnew.Height = this.ActualHeight;
            openWnew.Width = this.ActualWidth;
            openWnew.WindowState = this.WindowState;
            openWnew.Show();
            this.Close();  // Закрываем текущую форму
        }

        private void button19_Click(object sender, RoutedEventArgs e)
        {
            GameWindow openWnew = new GameWindow();
            openWnew.GetCountLevel(19);
            openWnew.Height = this.ActualHeight;
            openWnew.Width = this.ActualWidth;
            openWnew.WindowState = this.WindowState;
            openWnew.Show();
            this.Close();  // Закрываем текущую форму
        }

        private void button20_Click(object sender, RoutedEventArgs e)
        {
            GameWindow openWnew = new GameWindow();
            openWnew.GetCountLevel(20);
            openWnew.Height = this.ActualHeight;
            openWnew.Width = this.ActualWidth;
            openWnew.WindowState = this.WindowState;
            openWnew.Show();
            this.Close();  // Закрываем текущую форму
        }

        private void button21_Click(object sender, RoutedEventArgs e)
        {
            GameWindow openWnew = new GameWindow();
            openWnew.GetCountLevel(21);
            openWnew.Height = this.ActualHeight;
            openWnew.Width = this.ActualWidth;
            openWnew.WindowState = this.WindowState;
            openWnew.Show();
            this.Close();  // Закрываем текущую форму
        }

        private void button22_Click(object sender, RoutedEventArgs e)
        {
            GameWindow openWnew = new GameWindow();
            openWnew.GetCountLevel(22);
            openWnew.Height = this.ActualHeight;
            openWnew.Width = this.ActualWidth;
            openWnew.WindowState = this.WindowState;
            openWnew.Show();
            this.Close();  // Закрываем текущую форму
        }

        private void button23_Click(object sender, RoutedEventArgs e)
        {
            GameWindow openWnew = new GameWindow();
            openWnew.GetCountLevel(23);
            openWnew.Height = this.ActualHeight;
            openWnew.Width = this.ActualWidth;
            openWnew.WindowState = this.WindowState;
            openWnew.Show();
            this.Close();  // Закрываем текущую форму
        }

        private void button24_Click(object sender, RoutedEventArgs e)
        {
            GameWindow openWnew = new GameWindow();
            openWnew.GetCountLevel(24);
            openWnew.Height = this.ActualHeight;
            openWnew.Width = this.ActualWidth;
            openWnew.WindowState = this.WindowState;
            openWnew.Show();
            this.Close();  // Закрываем текущую форму
        }

        private void button25_Click(object sender, RoutedEventArgs e)
        {
            GameWindow openWnew = new GameWindow();
            openWnew.GetCountLevel(25);
            openWnew.Height = this.ActualHeight;
            openWnew.Width = this.ActualWidth;
            openWnew.WindowState = this.WindowState;
            openWnew.Show();
            this.Close();  // Закрываем текущую форму
        }
    }
}
